package cn.ivicar.cloud.influxdb;

import cn.ivicar.cloud.utils.DataType;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.Date;

public interface InfluxdbIntf {
    public void write(String database, String clientId, DataType type, JSONObject data);

    public void write(String database, String clientId, DataType type, JSONArray dataArray);

    public String query(String database, String clientId, DataType type, Date start, Date end, int limit, int count);
}
